function [ v1_output, v2_output, v3_output ] = fitTrianglesToOnePlane( v1, v2, v3 )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here

v1_output = [0, 0, 0];
v2_output = [vmNorm(v2-v1), 0, 0];

L2 = v3-v1;
L3 = v2-v1;
L1 = v3-v2;

cosPhi = ( L2(1)*L3(1) + L2(2)*L3(2) + L2(3)*L3(3) ) / ( vmNorm(L3) * vmNorm(L2) );
sinPhi = sqrt(1 - cosPhi * cosPhi);

v3_output = [vmNorm(L2) * cosPhi, vmNorm(L2) * sinPhi, 0];

% v1_output, v2_output, v3_output

end

